package xin.codedream.codelog;

import lombok.extern.log4j.Log4j2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

/**
 * CodeLog Run
 *
 * @author NGLSL
 * @date 2018/8/3
 */
@Log4j2
@SpringBootApplication
@MapperScan("xin.codedream.codelog.dao")
public class Application {
    public static void main(String[] args) {
        ApplicationContext run = SpringApplication.run(Application.class, args);
        String serverPort = run.getEnvironment().getProperty("server.port");
        log.info("CodeLog successful startup. http://localhost:" + serverPort);
    }
}
